#ifndef LIGHT_H
#define LIGHT_H

#include <stdint.h>

/**
 * @brief Initialize light sensor (configure PA4 as analog input)
 */
void light_init(void);

/**
 * @brief Read light intensity (convert to physical quantity)
 * @return Light intensity value (unit determined by sensor characteristics)
 */
float read_light_intensity(void);

/**
 * @brief Read raw AD value from light sensor (unfiltered)
 * @return Raw AD value (0-4095, depending on ADC bits)
 */
uint16_t light_read_raw(void);

/**
 * @brief Intelligent light control logic (automatic/manual mode processing)
 */
void light_control(void);

#endif // __LIGHT_H__
